using System.Collections.Generic;
using System.Threading.Tasks;
using Comteck.Dto.Orders;

namespace Comteck.Ktt.Services.Orders {
  /// <summary>
  /// 
  /// </summary>
  public interface ISelfOrgTagService : IScopedDependency {
    /// <summary>
    /// 查询分页主表数据
    /// </summary>
    /// <param name="model"></param>
    /// <returns></returns>
    Task<IEnumerable<SelfOrgTagDto>> GetAllAsync();

    /// <summary>
    /// 
    /// </summary>
    /// <param name="id"></param>
    /// <returns></returns>
    Task<SelfOrgTagDto> GetEditModelAsync(int id);

    /// <summary>
    /// 新增
    /// </summary>
    /// <param name="model"></param>
    /// <returns></returns>
    Task<AjaxResponse<SelfOrgTagDto>> SaveAsync(SelfOrgTagDto model);

    /// <summary>
    /// 新增
    /// </summary>
    /// <param name="model"></param>
    /// <returns></returns>
    Task<AjaxResponse> DeleteAsync(int id);

    /// <summary>
    /// 新增
    /// </summary>
    /// <param name="list"></param>
    /// <returns></returns>
    Task DeleteBatchAsync(List<int> ids);
  }
}
